﻿package dut.ir.lxb.weibo.bean;

import dut.ir.lxb.weibo.util.ActionType;
import dut.ir.lxb.weibo.util.SpiderConfig;

/**
 * 用户对微博的行为
 * @author Administrator
 *
 */
public class UserWeiboAction
{
	
	protected String mid;
	
	protected String uid;
	
	protected String owneruid = "";
	
	protected String ownerNickname = "";
	
	protected String nickname = "";
	
	ActionType actionType;
	
	protected String datetime;
	
	protected String content = "";
	
	protected String path = "";
	
	protected String forwardmid = "";
	
	/**
	 * 备注
	 */
	protected String property = "";
	
	
	public static String getHeader()
	{
		String header = "";
		header = "mid\tuid\tnickname\tactiontype\tdatetime\tcontent\tpath\tforwardmid\tproperty"; 
		return header;
	}
	
	@Override
	public String toString()
	{
		String strValue = mid + "\t" + uid + "\t" + nickname + "\t" + actionType + "\t" + 
		datetime + "\t" + content + "\t" + path + "\t" + forwardmid + "\t" + property;
		
		return strValue;
	}
	
	public UserWeiboAction()
	{
		
	}


	public String getMid()
	{
	
		return mid;
	}


	public void setMid(String mid)
	{
	
		this.mid = mid;
	}


	public String getUid()
	{
	
		return uid;
	}


	public void setUid(String uid)
	{
	
		this.uid = uid;
	}


	public ActionType getActionType()
	{
	
		return actionType;
	}


	public void setActionType(ActionType actionType)
	{
	
		this.actionType = actionType;
	}


	public String getProperty()
	{
	
		return property;
	}


	public void setProperty(String property)
	{
	
		this.property = property;
	}


	public String getContent()
	{
	
		return content.replaceAll(SpiderConfig.emojPattern, "").replace("🤗", "");
	}


	public void setContent(String content)
	{
	
		this.content = content.replaceAll(SpiderConfig.emojPattern, "").replace("🤗", "");
	}


	public String getPath()
	{
	
		return path;
	}


	public void setPath(String path)
	{
	
		this.path = path;
	}


	public String getDatetime()
	{
	
		return datetime;
	}


	public void setDatetime(String datetime)
	{
	
		this.datetime = datetime;
	}


	public String getNickname()
	{
	
		return nickname;
	}


	public void setNickname(String nickname)
	{
	
		this.nickname = nickname;
	}


	public String getForwardmid()
	{
	
		return forwardmid;
	}


	public void setForwardmid(String forwardmid)
	{
	
		this.forwardmid = forwardmid;
	}

	public String getOwneruid()
	{
	
		return owneruid;
	}

	public void setOwneruid(String owneruid)
	{
	
		this.owneruid = owneruid;
	}

	public String getOwnerNickname()
	{
	
		return ownerNickname;
	}

	public void setOwnerNickname(String ownerNickname)
	{
	
		this.ownerNickname = ownerNickname;
	}
	
	
	
	
}
